<template>
	<view class="btn">
		<view class="btnItem">
			<button type="default" @click="rootOk">有权限</button>
			<button type="default" @click="rootNot">无权限</button>
			<button type="default" @click="toUserPay">用户付款</button>
			<button type="default" @click="toFinishList">查看订单</button>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				root:true
			}
		},
		methods:{
			rootOk(){
				this.root=true
				uni.navigateTo({
					url:`./storeInfo?root=${this.root}`
				})
			},
			rootNot(){
				this.root=false
				uni.navigateTo({
					url:`./storeInfo?root=${this.root}`
				})
			},
			
			toUserPay(){
				uni.navigateTo({
					url:'../userPay/userPay'
				})
			},
			
			
			toFinishList(){
				// uni.showToast({
				// 	title:"暂未开放",
				// 	icon:'none'
				// })
				uni.navigateTo({
					url:'../finishList/finishList'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.btn{
		font-family: PingFang SC;
		font-weight: bold;
		width: 100%;
		height: 100%;
		.btnItem{
			width: 60%;
			height: 60%;
			position: absolute;
			top: 0;
			left: 0;
			bottom: 0;
			right: 0;
			margin: auto;
			button{border: 2rpx solid #555555;margin-bottom: 40rpx;border-radius: 40rpx;}
		}
	}
</style>
